package com.zq.download.bean;

import com.zq.db.annotation.Column;
import com.zq.db.annotation.Table;
import com.zq.db.annotation.Type;
import com.zq.db.bean.CachedReflectSQLBean;

/**
 * Created by zhangqiang on 17-6-21.
 */

@Table(name = "download")
public class DownloadInfo extends CachedReflectSQLBean{

    public static final int STATE_DOWNLOADING = 1;
    public static final int STATE_PAUSE = 1;
    public static final int STATE_FINISH = 1;
    public static final int STATE_FAIL = 1;

    @Column(type = Type.INTEGER,primaryKey = true)
    private Integer id;

    @Column(type = Type.TEXT)
    private String url;

    @Column(type = Type.TEXT)
    private String tag;

    @Column(type = Type.TEXT)
    private String savePath;

    @Column(type = Type.TEXT)
    private String tempPath;

    @Column(type = Type.INTEGER)
    private Integer state;

    @Column(type = Type.INTEGER)
    private Integer currentPosition;

    @Column(type = Type.INTEGER)
    private Integer contentLength;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public String getSavePath() {
        return savePath;
    }

    public void setSavePath(String savePath) {
        this.savePath = savePath;
    }

    public String getTempPath() {
        return tempPath;
    }

    public void setTempPath(String tempPath) {
        this.tempPath = tempPath;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getCurrentPosition() {
        return currentPosition;
    }

    public void setCurrentPosition(Integer currentPosition) {
        this.currentPosition = currentPosition;
    }

    public Integer getContentLength() {
        return contentLength;
    }

    public void setContentLength(Integer contentLength) {
        this.contentLength = contentLength;
    }
}
